package android.session.txtdisp;


import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.widget.TextView;

public class MessageDisplay extends Activity {

    @Override 
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        /* Get the intent that started the current activity*/
        Intent rxIntent = getIntent();
        String rxMsg = rxIntent.getStringExtra(MainActivity.EXTRA_MESSAGE);
        
        TextView txtView = new TextView(this);
        txtView.setTextSize(40);
        txtView.setText(rxMsg);
        
        /* All the layout parameters are ignored, width & height are set to MATCH_PARENT*/
        setContentView(txtView);
        /*setContentView(R.layout.activity_display_message);*/
    }

}
